package base;

import java.util.ArrayList;
import java.util.Scanner;


public class StudentManager {

   static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {



        init();
    }

    public static void init() {

        ArrayList<Student> studentArrayList = new ArrayList<>();


        while (true) {
            System.out.println("\n\n************欢迎来到学生管理系统************");
            System.out.println("1 添加学生");
            System.out.println("2 删除学生");
            System.out.println("3 修改学生");
            System.out.println("4 查看所有学生");
            System.out.println("5 退出系统");
            System.out.println("请输入你的选择：");

            String select = scanner.nextLine();

            switch (select) {
                case "1":

                    addStudent(studentArrayList);
                    break;
                case "2":
                    delStudent(studentArrayList);
                    break;
                case "3":
                    updateStudent(studentArrayList);
                    break;
                case "4":
                    selectStudent(studentArrayList);
                    break;
                case "5":
                    System.out.println("谢谢使用！");
                    System.exit(0);
            }

        }
    }


    //查看学生
    private static void selectStudent(ArrayList<Student> studentArrayList) {
    }

    //修改学生
    private static void updateStudent(ArrayList<Student> studentArrayList) {
    }


    //删除学生
    private static void delStudent(ArrayList<Student> studentArrayList) {


    }

    //添加学生
    private static void addStudent(ArrayList<Student> arrayList) {
        //学号
        System.out.println("请输入学号：");
        String id = scanner.nextLine();

        //姓名

        //年龄
    }
}
